package cn.itcast.crm.service;

import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import cn.itcast.crm.domain.Customer;

@Path("/CusermerService")
public interface ICustomerService {

	@Path("/customer")
	//上传类型
	@Consumes({"application/json","application/xml"})
	@POST
	public void save(Customer customer);
	
	@Path("/customer")
	@Consumes({"application/json","application/xml"})
	@DELETE
	public void deleteUser(@QueryParam("id2") Integer abc);
	
	@Path("/customer")
	@GET
	@Produces({"application/json","application/xml"})
	public List<Customer> findUser();
	
	@Path("/customer")
	@PUT
	@Consumes({"application/json","application/xml"})
	public void update(Customer customer);
	
	@Path("/customer")
	@GET
	@Produces({"application/json","application/xml"})
	public List<Customer> findUserById(@QueryParam("id1" ) Integer a);
	
	@Path("/null")
	@GET
	@Produces({"application/json","application/xml"})
	public List<Customer> findCustomerIsNull();
	
	@Path("/fixedAreaId")
	@GET
	@Produces({"application/json","application/xml"})
	public List<Customer> findCustomerByfixedAreaId(@QueryParam("id1" ) String fixedAreaId);
	
	@Path("/update")
	@PUT
	public void updateCustomer(@QueryParam("CustomerIds" ) String CustomerIds,@QueryParam("fixedAreaId" ) String fixedAreaId);

/*    @Path("/remove")
    @PUT
    public void removeCustomer(@QueryParam("fixedAreaId")String fixedAreaId );*/
}


	
    
